﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace BolaoDNA.DomainModel
{
    public class UsuarioCadastrado
    {
        virtual public int ID { get; set; }

        virtual public StatusUsuario Status { get; set; }
   
        virtual public IList<InscricaoBolao> InscricoesBolao {get ; set;}
        
        [Required]
        virtual public string Nome {get ; set;}
       
        [Required]
        [DataType(DataType.EmailAddress)]
        [RegularExpression(@"^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*\.(([a-z]{2,3})|(aero|coop|info|museum|name))$", ErrorMessage = "Invalid email")]
        virtual public string Email {get ; set;}

        public override string ToString()
        {
            return this.Nome;
        }

    }
}
